package com.touni.lambda.spliterator;

import java.util.Spliterator;
import java.util.function.Consumer;

/**
 * @ClassName : MySpliterator
 * @Description :
 * @Author : lwq
 * @Date: 2020-11-23 16:32
 */
public class MySpliterator<T> implements Spliterator<T> {

    @Override
    public boolean tryAdvance(Consumer<? super T> action) {
        return false;
    }

    @Override
    public Spliterator<T> trySplit() {
        return null;
    }

    @Override
    public long estimateSize() {
        return 0;
    }

    /**
     * 特性集的编码
     * @return
     */
    @Override
    public int characteristics() {
        return 0;
    }
}
